package com.isoftstone.merchant.service.operator.impl;

import com.isoftstone.common.Page;
import com.isoftstone.merchant.dao.operator.MOperatorMapper;
import com.isoftstone.merchant.entity.operator.MOperator;
import com.isoftstone.merchant.service.operator.IMOperatorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zhaojg
 * @Description
 * @Date: Created in 22:05 2017/11/27
 * @Modified by:
 */

@Service
public class MOperatorService implements IMOperatorService {

    @Autowired
    MOperatorMapper mOperatorMapper;


    @Override
    public List<MOperator> getOperatorlistPage(Page page) throws Exception {
        return mOperatorMapper.getOperatorlistPage(page);
    }

    @Override
    public int deleteByPrimaryKey(String operatorId) throws Exception {
        return mOperatorMapper.deleteByPrimaryKey(operatorId);
    }

    @Override
    public MOperator getMOperatorByMOperatorId(String operatorId) throws Exception {
        return mOperatorMapper.getMOperatorByMOperatorId(operatorId);
    }
}
